package org.yumeko.connet.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yumeko.connet.po.TJob;
import org.yumeko.connet.service.RedisService;

import java.util.List;

@RestController
@RequestMapping(value = "/job")
public class JobController {

    @Autowired
    private RedisService rs;


    @RequestMapping(value = "getredis")
    public List<TJob> getJobs() throws Exception {
        return rs.getHotList();
    }


}
